<?php
namespace app\index\controller;

use app\BaseController;
use think\facade\Cache;


/**
 * Class IndexController
 * @package app\controller
 */
class IndexController extends BaseController
{
    /**
     * index
     * @return string
     */
    public function index()
    {
        return '<style type="text/css">
                    *{ padding: 0; margin: 0; } 
                    div{ padding: 4px 48px;} 
                    a{color:#2E5CD5;cursor: pointer;text-decoration: none} 
                    a:hover{text-decoration:underline; } 
                    body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} 
                    h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } 
                    p{ line-height: 1.6em; font-size: 42px }
                </style>
                <div style="padding: 24px 48px;"> 
                    <h1>^2_3^</h1>
                    <p> ThinkPHP V' . \think\facade\App::version() . '<br/>
                        <span style="font-size:30px;">14载初心不改 - 你值得信赖的PHP框架</span>
                    </p>
                    <span style="font-size:25px;">[ V6.0 版本由 <a href="https://www.yisu.com/" target="yisu">亿速云</a> 独家赞助发布 ]</span>
                    <h3>(project-thinkphp-thinkphp608)</h3>
                </div>';
    }

    /**
     * hello
     * @param string $name
     * @return string
     */
    public function hello($name = 'ThinkPHP6')
    {
        Cache::set('developer', 'cyb');
        $developer = Cache::get('developer');
        return '^2_3^ (2workroom3) hello,' . $name. " ({$developer})";
    }
}
